package com.data.modules.gd.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import com.data.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 新闻屏事件日志
 * @Author: data-boot
 * @Date:   2023-08-29
 * @Version: V1.0
 */
@Data
@TableName("gd_event_log")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="gd_event_log对象", description="新闻屏事件日志")
public class GdEventLog implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**设备序列号*/
	@Excel(name = "设备序列号", width = 15)
    @ApiModelProperty(value = "设备序列号")
    private String sn;
	/**触发时间*/
	@Excel(name = "触发时间", width = 15)
    @ApiModelProperty(value = "触发时间")
    private String triggerTime;
	/**事件类型*/
	@Excel(name = "事件类型", width = 15, dicCode = "gd_device_type")
	@Dict(dicCode = "gd_device_type")
    @ApiModelProperty(value = "事件类型")
    private String type;
	/**链接地址主键*/
	@Excel(name = "链接地址主键", width = 15)
    @ApiModelProperty(value = "链接地址主键")
    private String urlId;
	/**事件编码*/
	@Excel(name = "观看时长(秒)", width = 15)
    @ApiModelProperty(value = "观看时长秒")
    private Integer eventCode;
	/**频道名称*/
	@Excel(name = "频道名称", width = 15)
    @ApiModelProperty(value = "频道名称")
    private String tv;
	/**节目单名称*/
	@Excel(name = "节目单名称", width = 15)
    @ApiModelProperty(value = "节目单名称")
    private String programme;

    @Excel(name = "标题", width = 15)
    @TableField(exist = false)
    @ApiModelProperty(value = "标题")
    private String title;

}
